# Working example of Arch Linux PKGBUILD for NsCDE 2.X
pkgname=nscde
pkgver=2.3
pkgrel=3
pkgdesc="Not so Common Desktop Environment: Modern and functional CDE based on FVWM"
arch=(x86_64)
url="https://github.com/NsCDE"
license=('GPL')
depends=('libxext' 'libx11' 'libxpm' 'stalonetray' 'xsettingsd' 'fvwm' 'glibc' 'ksh'
'imagemagick' 'xorg-xprop' 'xorg-xrdb' 'xorg-xset' 'xorg-xdpyinfo' 'xorg-xrefresh'
'xorg-xmodmap' 'xorg-xrandr' 'gcc' 'xterm' 'python3' 'python-pyxdg' 'python-yaml'
'python-psutil' 'python-qtpy' 'xdotool' 'xdg-utils' 'gettext' 'groff' 'ttf-dejavu')
makedepends=('xorgproto' 'autoconf' 'automake')
optdepends=('xclip: Copy screen, window of area shot to X11 clipboard'
'xscreensaver: Enhanced X screensaver'
'dunst: Standalone Notification Daemon'
'dex: Run desktop definitions from $HOME/.config/autostart'
'gtk2: Pixmap engine for theme and Qt gtk engine is here'
'qt5-styleplugins: integrate gtk2 NsCDE theme with Qt5'
'qt5ct: Qt5 Configuration Utility'
'qt6ct: Qt6 Configuration Utility'
'picom: X compositor that may fix tearing issues'
'gkrellm: System monitor package fits nicely with NsCDE')
# options=()
provides=('nscde')
source=($pkgname-$pkgver.tar.gz)
md5sums=('SKIP')

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr --libexecdir=/usr/lib
  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install
}

